package com.vitabuybuy.tv.dto;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.vitabuybuy.tv.BR;
import com.vitabuybuy.tv.utils.LanaugeUtils;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2020/12/20
 * 时间：16:24
 * 包名：com.vitabuybuy.tv.dto
 */
public class StroeDetailDto extends BaseObservable {

    /**
     * address : 维多利亚广场
     * contactName : 小张
     * updateTime : 2020-12-16 10:49:35
     * type : 服装类
     * balanceAmount : 0.0
     * slideList : [{"image":"http://106.55.47.138/attachment/jpg/6661/854_19957.jpg","id":26}]
     * enabled : true
     * productQuantity : 4
     * createTime : 2020-12-02 09:44:26
     * phone : 15820167086
     * couponList : []
     * name : 优衣库官方旗舰店
     * logo : http://106.55.47.138/attachment/jpg/3704/853_7490.jpg
     * id : 62
     * contactPhone : 15820167086
     * category : {"name":"服装","id":31}
     * live : {"image":"http://106.55.47.138/attachment/png/954/1416_10902.png","roomNumber":"31459406708210","show":true,"title":"优衣库4点直播","type":"立即直播","viewerQuantity":1,"giftQuantity":0,"createTime":"2020-12-20 16:02:30","onlineQuantity":1,"praiseQuantity":0,"id":406,"openTime":"2020-12-20 16:02:30","category":{"name":"服装","id":31},"taskId":"UUpTbkdRQVhSQFFoQFtDUVJBXWpNVUNdVkBRbUVRSRkVHRl6RyBWWSdVWxlFUEpeU0VHMx0XFhsUAwFxGRgCCA0fHDtaAhwGWxwAKRFbQl1RSF1nRFBGW1tBX29MVEZZUEVZfEQ=","status":"直播中"}
     * status : 通过
     */

    private String address = "";
    private String contactName;
    private String updateTime;
    private String type;
    private double balanceAmount;
    private boolean enabled;
    @Bindable
    private boolean favorites;
    @Bindable
    private boolean attention;
    private int productQuantity;
    @Bindable
    private int favoriteQuantity;
    private String createTime;
    private String phone;
    private String name;
    private String logo;
    private int id;
    private String contactPhone;

    public boolean isAttention() {
        return attention;
    }

    public void setAttention(boolean attention) {
        this.attention = attention;
        notifyPropertyChanged(BR.attention);
    }

    public boolean isFavorites() {
        return favorites;
    }

    public void setFavorites(boolean favorites) {
        this.favorites = favorites;
        notifyPropertyChanged(BR.favorites);
    }

    public int getFavoriteQuantity() {
        return favoriteQuantity;
    }

    public void setFavoriteQuantity(int favoriteQuantity) {
        this.favoriteQuantity = favoriteQuantity;
        notifyPropertyChanged(BR.favoriteQuantity);
    }

    /**
     * name : 服装
     * id : 31
     */

    private CategoryBean category;
    /**
     * image : http://106.55.47.138/attachment/png/954/1416_10902.png
     * roomNumber : 31459406708210
     * show : true
     * title : 优衣库4点直播
     * type : 立即直播
     * viewerQuantity : 1
     * giftQuantity : 0
     * createTime : 2020-12-20 16:02:30
     * onlineQuantity : 1
     * praiseQuantity : 0
     * id : 406
     * openTime : 2020-12-20 16:02:30
     * category : {"name":"服装","id":31}
     * taskId : UUpTbkdRQVhSQFFoQFtDUVJBXWpNVUNdVkBRbUVRSRkVHRl6RyBWWSdVWxlFUEpeU0VHMx0XFhsUAwFxGRgCCA0fHDtaAhwGWxwAKRFbQl1RSF1nRFBGW1tBX29MVEZZUEVZfEQ=
     * status : 直播中
     */

    private LiveBean live;
    private String status;
    /**
     * image : http://106.55.47.138/attachment/jpg/6661/854_19957.jpg
     * id : 26
     */

    private List<BannerDto.SlideListBean> slideList;
    private List<BannerDto.ProductListBean> productList;
    private List<CouponCenterDto> couponList;

    public List<BannerDto.ProductListBean> getProductList() {
        return productList;
    }

    public void setProductList(List<BannerDto.ProductListBean> productList) {
        this.productList = productList;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getBalanceAmount() {
        return balanceAmount;
    }

    public void setBalanceAmount(double balanceAmount) {
        this.balanceAmount = balanceAmount;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public int getProductQuantity() {
        return productQuantity;
    }

    public void setProductQuantity(int productQuantity) {
        this.productQuantity = productQuantity;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public CategoryBean getCategory() {
        return category;
    }

    public void setCategory(CategoryBean category) {
        this.category = category;
    }

    public LiveBean getLive() {
        return live;
    }

    public void setLive(LiveBean live) {
        this.live = live;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<BannerDto.SlideListBean> getSlideList() {
        return slideList;
    }

    public void setSlideList(List<BannerDto.SlideListBean> slideList) {
        this.slideList = slideList;
    }

    public List<CouponCenterDto> getCouponList() {
        return couponList;
    }

    public void setCouponList(List<CouponCenterDto> couponList) {
        this.couponList = couponList;
    }

    public static class CategoryBean {
        private String name;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class LiveBean {
        private List<ProductListBean> productList;
        private String image;
        private String roomNumber;
        private boolean show;
        private String title;
        private String type;
        private int viewerQuantity;
        private int giftQuantity;
        private String createTime;
        private int onlineQuantity;
        private int praiseQuantity;
        private int id;
        private String openTime;
        /**
         * name : 服装
         * id : 31
         */

        private CategoryBean category;
        private String taskId;
        private String status;

        public List<ProductListBean> getProductList() {
            return productList;
        }

        public void setProductList(List<ProductListBean> productList) {
            this.productList = productList;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getRoomNumber() {
            return roomNumber;
        }

        public void setRoomNumber(String roomNumber) {
            this.roomNumber = roomNumber;
        }

        public boolean isShow() {
            return show;
        }

        public void setShow(boolean show) {
            this.show = show;
        }

        public String getTitle() {
            return LanaugeUtils.returnStrByLocation(title);
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public int getViewerQuantity() {
            return viewerQuantity;
        }

        public void setViewerQuantity(int viewerQuantity) {
            this.viewerQuantity = viewerQuantity;
        }

        public int getGiftQuantity() {
            return giftQuantity;
        }

        public void setGiftQuantity(int giftQuantity) {
            this.giftQuantity = giftQuantity;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getOnlineQuantity() {
            return onlineQuantity;
        }

        public void setOnlineQuantity(int onlineQuantity) {
            this.onlineQuantity = onlineQuantity;
        }

        public int getPraiseQuantity() {
            return praiseQuantity;
        }

        public void setPraiseQuantity(int praiseQuantity) {
            this.praiseQuantity = praiseQuantity;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getOpenTime() {
            return openTime;
        }

        public void setOpenTime(String openTime) {
            this.openTime = openTime;
        }

        public CategoryBean getCategory() {
            return category;
        }

        public void setCategory(CategoryBean category) {
            this.category = category;
        }

        public String getTaskId() {
            return taskId;
        }

        public void setTaskId(String taskId) {
            this.taskId = taskId;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public static class CategoryBean {
            private String name;
            private int id;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }

        public static class ProductListBean {
            private String thumbnail;
            private String name;
            private double saleprice = 0.00;
            private int id;

            public double getSaleprice() {
                return saleprice;
            }

            public void setSaleprice(double saleprice) {
                this.saleprice = saleprice;
            }

            public String getThumbnail() {
                return thumbnail;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            public String getName() {
                return LanaugeUtils.returnStrByLocation(name);
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }

    }

    public static class SlideListBean {
        private String image;
        private int id;

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }
}
